/**
* Copyright (C) 2008 Happy Fish / YuQing
*
* FastDFS may be copied only under the terms of the GNU General
* Public License V3, which may be found in the FastDFS source kit.
* Please visit the FastDFS Home Page http://www.csource.org/ for more detail.
**/

//fnio_define.h

#ifndef _FNIO_DEFINE_H_
#define _FNIO_DEFINE_H_

#include <pthread.h>
#include "common_define.h"

#define FNIO_PROXY_CLIENT_DEFAULT_PORT  12200
#define FNIO_PROXY_SERVER_DEFAULT_PORT  12201

#define FNIO_DEFAULT_SERVER_WORK_THREADS  32

#define FNIO_MAX_BUFF_SIZE        256 * 1024
#define FNIO_MIN_BUFF_SIZE        32 * 1024

#define FNIO_MAX_PKG_SIZE         64 * 1024

#define FNIO_SERVER_MODE_CLIENT   'C'
#define FNIO_SERVER_MODE_SERVER   'S'

#ifdef __cplusplus
extern "C" {
#endif


#ifdef __cplusplus
}
#endif

#endif
